package com.wyk.handler;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @ClassName: StringTypeHandler
 * @Description:
 * @Author: 初久
 * @Date: 2022/7/12 9:00
 **/
public class StringTypeHandler implements TypeHandler<String> {
    @Override
    public void setParameter(PreparedStatement statement, int pose, String value) throws SQLException {
        statement.setString(pose, value);
    }

    @Override
    public String getParameter(ResultSet resultSet, String columnName) throws SQLException {
        return resultSet.getString(columnName);
    }
}
